package cn.yougou.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * (YgCoupons)实体类
 *
 * @author makejava
 * @since 2020-12-20 10:12:13
 */
public class YgCoupons implements Serializable {
    private static final long serialVersionUID = 123831214477444845L;
    /**
     * id优惠卷主键
     */
    private Integer id;
    /**
     * 优惠卷描述
     */
    private String coupontitile;
    /**
     * 领取规则
     */
    private String getrules;
    /**
     * 领取规则描述
     */
    private String getrulestitle;
    /**
     * 领取规则条件
     */
    private String getrulesjudge;
    /**
     * 对应商家
     */
    private String typeid;
    /**
     * 对应商品
     */
    private String commodityid;
    /**
     * 优惠规则
     */
    private String couponrules;
    /**
     * 优惠规则描述
     */
    private String couponrulestitle;
    /**
     * 优惠规则条件
     */
    private String couponrulesjudge;
    /**
     * 优惠金额
     */
    private Double couponmoney;
    /**
     * 领取张数
     */
    private Integer repetitionget;
    /**
     * 开始时间
     */
    private String startdate;
    /**
     * 到期时间
     */
    private String enddate;
    /**
     * 过期时间
     */
    private String stopdate;
    /**
     * 优惠卷数量
     */
    private Integer couponscount;
    /**
     * 状态：0正常 1过期 2下架
     */
    private Integer state;
    /**
     * 设置过期时间 默认单位 ：天
     */
    private Integer couponsTime;
    /**
     *  是否已经被领取
     * */
    private Integer isGet =0;
/**
 * 禁止时间
 * */
    private String forbidScope;
    public YgCoupons() {
    }
    public YgCoupons(Integer id,Integer state) {
        this.id=id;
        this.state=state;
    }
    public YgCoupons(Integer state) {
        this.state = state;
    }

    public YgCoupons(Integer id, String coupontitile, String getrules, String getrulesjudge, String typeid, String commodityid, String couponrules, String couponrulestitle, String couponrulesjudge, Double couponmoney, Integer repetitionget, String startdate, String enddate, String stopdate, Integer couponscount, Integer state, Integer couponsTime,String forbidScope) {
        this.id = id;
        this.coupontitile = coupontitile;
        this.getrules = getrules;

        this.getrulesjudge = getrulesjudge;
        this.typeid = typeid;
        this.commodityid = commodityid;
        this.couponrules = couponrules;
        this.couponrulestitle = couponrulestitle;
        this.couponrulesjudge = couponrulesjudge;
        this.couponmoney = couponmoney;
        this.repetitionget = repetitionget;
        this.startdate = startdate;
        this.enddate = enddate;
        this.stopdate = stopdate;
        this.couponscount = couponscount;
        this.state = state;
        this.couponsTime = couponsTime;
        this.forbidScope=forbidScope;
    }

    public Integer getIsGet() {
        return isGet;
    }

    public void setIsGet(Integer isGet) {
        this.isGet = isGet;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCoupontitile() {
        return coupontitile;
    }

    public void setCoupontitile(String coupontitile) {
        this.coupontitile = coupontitile;
    }

    public String getGetrules() {
        return getrules;
    }

    public void setGetrules(String getrules) {
        this.getrules = getrules;
    }

    public String getGetrulestitle() {
        return getrulestitle;
    }

    public void setGetrulestitle(String getrulestitle) {
        this.getrulestitle = getrulestitle;
    }

    public String getGetrulesjudge() {
        return getrulesjudge;
    }

    public void setGetrulesjudge(String getrulesjudge) {
        this.getrulesjudge = getrulesjudge;
    }

    public String getTypeid() {
        return typeid;
    }

    public void setTypeid(String shopid) {
        this.typeid = shopid;
    }

    public String getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(String commodityid) {
        this.commodityid = commodityid;
    }

    public String getCouponrules() {
        return couponrules;
    }

    public void setCouponrules(String couponrules) {
        this.couponrules = couponrules;
    }

    public String getCouponrulestitle() {
        return couponrulestitle;
    }

    public void setCouponrulestitle(String couponrulestitle) {
        this.couponrulestitle = couponrulestitle;
    }

    public String getCouponrulesjudge() {
        return couponrulesjudge;
    }

    public void setCouponrulesjudge(String couponrulesjudge) {
        this.couponrulesjudge = couponrulesjudge;
    }

    public Double getCouponmoney() {
        return couponmoney;
    }

    public void setCouponmoney(Double couponmoney) {
        this.couponmoney = couponmoney;
    }

    public Integer getRepetitionget() {
        return repetitionget;
    }

    public void setRepetitionget(Integer repetitionget) {
        this.repetitionget = repetitionget;
    }

    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getEnddate() {
        return enddate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    public String getStopdate() {
        return stopdate;
    }

    public void setStopdate(String stopdate) {
        this.stopdate = stopdate;
    }

    public Integer getCouponscount() {
        return couponscount;
    }

    public void setCouponscount(Integer couponscount) {
        this.couponscount = couponscount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getCouponsTime() {
        return couponsTime;
    }

    public void setCouponsTime(Integer couponsTime) {
        this.couponsTime = couponsTime;
    }
    public String getForbidScope() {
        return forbidScope;
    }

    public void setForbidScope(String forbidScope) {
        this.forbidScope = forbidScope;
    }

    @Override
    public String toString() {
        return "YgCoupons{" +
                "id=" + id +
                ", coupontitile='" + coupontitile + '\'' +
                ", getrules='" + getrules + '\'' +
                ", getrulestitle='" + getrulestitle + '\'' +
                ", getrulesjudge='" + getrulesjudge + '\'' +
                ", typeid='" + typeid + '\'' +
                ", commodityid='" + commodityid + '\'' +
                ", couponrules='" + couponrules + '\'' +
                ", couponrulestitle='" + couponrulestitle + '\'' +
                ", couponrulesjudge='" + couponrulesjudge + '\'' +
                ", couponmoney=" + couponmoney +
                ", repetitionget=" + repetitionget +
                ", startdate='" + startdate + '\'' +
                ", enddate='" + enddate + '\'' +
                ", stopdate='" + stopdate + '\'' +
                ", couponscount=" + couponscount +
                ", state=" + state +
                ", couponsTime=" + couponsTime +
                ", forbidScope='" + forbidScope + '\'' +
                '}';
    }

}